<!-- 列表页模块组件 -->
<template>
  <div class="listDiv">
    <div class="queryForm">
      <myForm :formConfig="queryFormConfig" :formData="queryFormData" :labelWidth="labelWidth">
        <template v-for="item in queryFormConfig" v-slot:[item.slotName]>
          <slot :name="item.slotName"></slot>
        </template>
      </myForm>
      <slot name="add"></slot>
    </div>

    <div>
      <slot />
    </div>
  </div>
</template>
  
  <script>
export default {
  props: {
    queryFormConfig: {
      type: Array,
      required: true
    },
    queryFormData: {
      type: Object,
      required: true
    },
    queryTitle: {
      type: String,
      required: false
    },
    resultTitle: {
      type: String,
      required: false
    },
    labelWidth: {
      type: String,
      required: false
    }
  },
  name: "titleWrap",
  data() {
    return {};
  },
  created() {},
  methods: {}
};
</script>
  <style scoped lang="scss">
.listDiv {
  padding: 15px;
}
</style>
  
  
  